package com.halflife.framework.participant;

import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Repository
public interface TeamRepository {

    int deleteByPrimaryKey(Integer id);

    int insert(Team team);

    int insertSelective(Team team);

    Team selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Team team);

    int updateByPrimaryKey(Team team);

    List<Team> selectAll(Map<String, Object> param);

    int selectCount(Map<String, Object> param);

    List<Team> selectListByPage(Map<String, Object> param);

    @Select({"${sql}"})
    @ResultMap("BaseResultMap")
    List<Team> selectMany(@Param("sql") String sql);

    @Select({"${sql}"})
    @ResultMap("BaseResultMap")
    Team selectOne(@Param("sql") String sql);



}